<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.6.1" />

	<title>Class dibi | Dibi 2.0.2 API documentation</title>

	<script type="text/javascript" src="resources/combined.js?3201557540"></script>
	<script type="text/javascript" src="elementlist.js?236042691"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?1321461267" />
	<link rel="search" type="application/opensearchdescription+xml" title="Dibi 2.0.2 API documentation" href="http://api.dibiphp.com/2.0/opensearch.xml" />

</head>

<body>
<div id="left">
	<div id="menu">

		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li class="active"><a href="package-dibi.html">dibi<span></span></a>
						<ul>
				<li><a href="package-dibi.drivers.html">drivers</a>
						</li>
				<li><a href="package-dibi.nette.html">nette</a>
						</li>
				<li><a href="package-dibi.reflection.html">reflection</a>
						</li>
							</ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="dibi.html">dibi</a></li>
				<li><a href="DibiConnection.html">DibiConnection</a></li>
				<li><a href="DibiDataSource.html">DibiDataSource</a></li>
				<li><a href="DibiDateTime.html">DibiDateTime</a></li>
				<li><a href="DibiEvent.html">DibiEvent</a></li>
				<li><a href="DibiFileLogger.html">DibiFileLogger</a></li>
				<li><a href="DibiFirePhpLogger.html">DibiFirePhpLogger</a></li>
				<li><a href="DibiFluent.html">DibiFluent</a></li>
				<li><a href="DibiObject.html">DibiObject</a></li>
				<li><a href="DibiResult.html">DibiResult</a></li>
				<li><a href="DibiResultIterator.html">DibiResultIterator</a></li>
				<li><a href="DibiRow.html">DibiRow</a></li>
				<li><a href="DibiTranslator.html">DibiTranslator</a></li>
			</ul>

			<h3>Interfaces</h3>
			<ul>
				<li><a href="IDataSource.html">IDataSource</a></li>
				<li><a href="IDibiDriver.html">IDibiDriver</a></li>
				<li><a href="IDibiReflector.html">IDibiReflector</a></li>
				<li><a href="IDibiResultDriver.html">IDibiResultDriver</a></li>
			</ul>


			<h3>Exceptions</h3>
			<ul>
				<li><a href="DibiDriverException.html">DibiDriverException</a></li>
				<li><a href="DibiException.html">DibiException</a></li>
				<li><a href="DibiNotImplementedException.html">DibiNotImplementedException</a></li>
				<li><a href="DibiNotSupportedException.html">DibiNotSupportedException</a></li>
				<li><a href="DibiPcreException.html">DibiPcreException</a></li>
			</ul>


		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form action="http://www.google.com/cse" id="search">
		<input type="hidden" name="cx" value="011549293477758430224:x_apk4yrmjm" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="hidden" name="more" value="api" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-dibi.html" title="Summary of dibi"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class dibi</h1>


	<div class="description">
	
<p>Interface for database drivers.</p>

<p>This class is static container class for creating DB objects and store
connections info.</p>

	</div>









	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-dibi.html">dibi</a><br />

				<b>Author:</b>
				David Grudl<br />
		<b>Located at</b> <a href="source-dibi.php.html#49" title="Go to source code">dibi.php</a><br />
	</div>


	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="__construct" id="___construct">

		<td class="attributes"><code>
			final public 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___construct">#</a>
		<code><a href="source-dibi.php.html#116" title="Go to source code">__construct</a>( )</code>

		<div class="description short">
			
<p>Static class - cannot be instantiated.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Static class - cannot be instantiated.</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="connect" id="_connect">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiConnection.html">DibiConnection</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_connect">#</a>
		<code><a href="source-dibi.php.html#130" title="Go to source code">connect</a>( <span>mixed <var>$config</var> = <span class="php-keyword1">array</span>()</span>, <span>string <var>$name</var> = <span class="php-num">0</span></span> )</code>

		<div class="description short">
			
<p>Creates a new DibiConnection object and connects it to specified
database.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Creates a new DibiConnection object and connects it to specified
database.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$config</var></dt>
					<dd><code>mixed</code><br>connection parameters</dd>
					<dt><var>$name</var></dt>
					<dd><code>string</code><br>connection name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiConnection.html">DibiConnection</a></code></code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="disconnect" id="_disconnect">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_disconnect">#</a>
		<code><a href="source-dibi.php.html#144" title="Go to source code">disconnect</a>( )</code>

		<div class="description short">
			
<p>Disconnects from database (doesn't destroy DibiConnection object).</p>

		</div>

		<div class="description detailed hidden">
			
<p>Disconnects from database (doesn't destroy DibiConnection object).</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="isConnected" id="_isConnected">

		<td class="attributes"><code>
			 public static
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_isConnected">#</a>
		<code><a href="source-dibi.php.html#155" title="Go to source code">isConnected</a>( )</code>

		<div class="description short">
			
<p>Returns TRUE when connection was established.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns TRUE when connection was established.</p>




				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="getConnection" id="_getConnection">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiConnection.html">DibiConnection</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getConnection">#</a>
		<code><a href="source-dibi.php.html#166" title="Go to source code">getConnection</a>( <span>string <var>$name</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Retrieve active connection.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Retrieve active connection.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$name</var></dt>
					<dd><code>string</code><br>connection registy name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiConnection.html">DibiConnection</a></code></code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="setConnection" id="_setConnection">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiConnection.html">DibiConnection</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_setConnection">#</a>
		<code><a href="source-dibi.php.html#191" title="Go to source code">setConnection</a>( <span><code><a href="DibiConnection.html">DibiConnection</a></code> <var>$connection</var></span> )</code>

		<div class="description short">
			
<p>Sets connection.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Sets connection.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$connection</var></dt>
					<dd><code><code><a href="DibiConnection.html">DibiConnection</a></code></code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiConnection.html">DibiConnection</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="activate" id="_activate">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_activate">#</a>
		<code><a href="source-dibi.php.html#203" title="Go to source code">activate</a>( <span>string <var>$name</var></span> )</code>

		<div class="description short">
			
<p>Change active connection.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Change active connection.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$name</var></dt>
					<dd><code>string</code><br>connection registy name</dd>
				</dl></div>


				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="query" id="_query">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiResult.html">DibiResult</a></code>|integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_query">#</a>
		<code><a href="source-dibi.php.html#220" title="Go to source code">query</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates and executes SQL query - Monostate for DibiConnection::query().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates and executes SQL query - Monostate for DibiConnection::query().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiResult.html">DibiResult</a></code>|integer</code><br>result set object (if any)<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="nativeQuery" id="_nativeQuery">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiResult.html">DibiResult</a></code>|integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_nativeQuery">#</a>
		<code><a href="source-dibi.php.html#234" title="Go to source code">nativeQuery</a>( <span>string <var>$sql</var></span> )</code>

		<div class="description short">
			
<p>Executes the SQL query - Monostate for DibiConnection::nativeQuery().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes the SQL query - Monostate for DibiConnection::nativeQuery().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sql</var></dt>
					<dd><code>string</code><br>SQL statement.</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiResult.html">DibiResult</a></code>|integer</code><br>result set object (if any)<br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="test" id="_test">

		<td class="attributes"><code>
			 public static
			boolean
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_test">#</a>
		<code><a href="source-dibi.php.html#246" title="Go to source code">test</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates and prints SQL query - Monostate for DibiConnection::test().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates and prints SQL query - Monostate for DibiConnection::test().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>boolean</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="dataSource" id="_dataSource">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiDataSource.html">DibiDataSource</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_dataSource">#</a>
		<code><a href="source-dibi.php.html#259" title="Go to source code">dataSource</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Generates and returns SQL query as DibiDataSource - Monostate for
DibiConnection::test().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Generates and returns SQL query as DibiDataSource - Monostate for
DibiConnection::test().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiDataSource.html">DibiDataSource</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="fetch" id="_fetch">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiRow.html">DibiRow</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetch">#</a>
		<code><a href="source-dibi.php.html#272" title="Go to source code">fetch</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch result - Monostate for DibiConnection::query()
&amp; fetch().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch result - Monostate for DibiConnection::query()
&amp; fetch().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiRow.html">DibiRow</a></code></code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchAll" id="_fetchAll">

		<td class="attributes"><code>
			 public static
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchAll">#</a>
		<code><a href="source-dibi.php.html#286" title="Go to source code">fetchAll</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch results - Monostate for DibiConnection::query()
&amp; fetchAll().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch results - Monostate for DibiConnection::query()
&amp; fetchAll().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br>of DibiRow<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchSingle" id="_fetchSingle">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchSingle">#</a>
		<code><a href="source-dibi.php.html#300" title="Go to source code">fetchSingle</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch first column - Monostate for
DibiConnection::query() &amp; fetchSingle().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch first column - Monostate for
DibiConnection::query() &amp; fetchSingle().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="fetchPairs" id="_fetchPairs">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_fetchPairs">#</a>
		<code><a href="source-dibi.php.html#314" title="Go to source code">fetchPairs</a>( <span>array|mixed <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Executes SQL query and fetch pairs - Monostate for DibiConnection::query()
&amp; fetchPairs().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Executes SQL query and fetch pairs - Monostate for DibiConnection::query()
&amp; fetchPairs().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>array|mixed</code><br>one or more arguments</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getAffectedRows" id="_getAffectedRows">

		<td class="attributes"><code>
			 public static
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getAffectedRows">#</a>
		<code><a href="source-dibi.php.html#328" title="Go to source code">getAffectedRows</a>( )</code>

		<div class="description short">
			
<p>Gets the number of affected rows. Monostate for
DibiConnection::getAffectedRows()</p>

		</div>

		<div class="description detailed hidden">
			
<p>Gets the number of affected rows. Monostate for
DibiConnection::getAffectedRows()</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>number of rows<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="affectedRows" id="_affectedRows">

		<td class="attributes"><code>
			 public static
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_affectedRows">#</a>
		<code><a href="source-dibi.php.html#341" title="Go to source code">affectedRows</a>( )</code>

		<div class="description short">
			
<p>Gets the number of affected rows. Alias for getAffectedRows().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Gets the number of affected rows. Alias for getAffectedRows().</p>




				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>number of rows<br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getInsertId" id="_getInsertId">

		<td class="attributes"><code>
			 public static
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getInsertId">#</a>
		<code><a href="source-dibi.php.html#353" title="Go to source code">getInsertId</a>( <span>string <var>$sequence</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column by the previous
INSERT query. Monostate for DibiConnection::getInsertId()</p>

		</div>

		<div class="description detailed hidden">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column by the previous
INSERT query. Monostate for DibiConnection::getInsertId()</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sequence</var></dt>
					<dd><code>string</code><br>optional sequence name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="insertId" id="_insertId">

		<td class="attributes"><code>
			 public static
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_insertId">#</a>
		<code><a href="source-dibi.php.html#367" title="Go to source code">insertId</a>( <span>string <var>$sequence</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column. Alias for
getInsertId().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Retrieves the ID generated for an AUTO_INCREMENT column. Alias for
getInsertId().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sequence</var></dt>
					<dd><code>string</code><br>optional sequence name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br />
				</div>

				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="begin" id="_begin">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_begin">#</a>
		<code><a href="source-dibi.php.html#380" title="Go to source code">begin</a>( <span>string <var>$savepoint</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Begins a transaction - Monostate for DibiConnection::begin().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Begins a transaction - Monostate for DibiConnection::begin().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$savepoint</var></dt>
					<dd><code>string</code><br>optional savepoint name</dd>
				</dl></div>


				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="commit" id="_commit">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_commit">#</a>
		<code><a href="source-dibi.php.html#393" title="Go to source code">commit</a>( <span>string <var>$savepoint</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Commits statements in a transaction - Monostate for
DibiConnection::commit($savepoint = NULL).</p>

		</div>

		<div class="description detailed hidden">
			
<p>Commits statements in a transaction - Monostate for
DibiConnection::commit($savepoint = NULL).</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$savepoint</var></dt>
					<dd><code>string</code><br>optional savepoint name</dd>
				</dl></div>


				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="rollback" id="_rollback">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_rollback">#</a>
		<code><a href="source-dibi.php.html#406" title="Go to source code">rollback</a>( <span>string <var>$savepoint</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
<p>Rollback changes in a transaction - Monostate for
DibiConnection::rollback().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Rollback changes in a transaction - Monostate for
DibiConnection::rollback().</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$savepoint</var></dt>
					<dd><code>string</code><br>optional savepoint name</dd>
				</dl></div>


				<h4>Throws</h4>
				<div class="list">
					<code><code><a href="DibiException.html">DibiException</a></code></code><br />
				</div>


		</div>
		</div></td>
	</tr>
	<tr data-order="getDatabaseInfo" id="_getDatabaseInfo">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiDatabaseInfo.html">DibiDatabaseInfo</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getDatabaseInfo">#</a>
		<code><a href="source-dibi.php.html#419" title="Go to source code">getDatabaseInfo</a>( )</code>

		<div class="description short">
			
<p>Gets a information about the current database - Monostate for
DibiConnection::getDatabaseInfo().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Gets a information about the current database - Monostate for
DibiConnection::getDatabaseInfo().</p>




				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiDatabaseInfo.html">DibiDatabaseInfo</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="loadFile" id="_loadFile">

		<td class="attributes"><code>
			 public static
			integer
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_loadFile">#</a>
		<code><a href="source-dibi.php.html#430" title="Go to source code">loadFile</a>( <span>string <var>$file</var></span> )</code>

		<div class="description short">
			
<p>Import SQL dump from file - extreme fast!</p>

		</div>

		<div class="description detailed hidden">
			
<p>Import SQL dump from file - extreme fast!</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$file</var></dt>
					<dd><code>string</code><br>filename</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>integer</code><br>count of sql commands<br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="__callStatic" id="___callStatic">

		<td class="attributes"><code>
			 public static
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#___callStatic">#</a>
		<code><a href="source-dibi.php.html#442" title="Go to source code">__callStatic</a>( <span> <var>$name</var></span>, <span> <var>$args</var></span> )</code>

		<div class="description short">
			
<p>Replacement for majority of dibi::methods() in future.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Replacement for majority of dibi::methods() in future.</p>







		</div>
		</div></td>
	</tr>
	<tr data-order="command" id="_command">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_command">#</a>
		<code><a href="source-dibi.php.html#459" title="Go to source code">command</a>( )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="select" id="_select">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_select">#</a>
		<code><a href="source-dibi.php.html#469" title="Go to source code">select</a>( <span>string <var>$args</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$args</var></dt>
					<dd><code>string</code><br>column name</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="update" id="_update">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_update">#</a>
		<code><a href="source-dibi.php.html#481" title="Go to source code">update</a>( <span>string <var>$table</var></span>, <span>array <var>$args</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>table</dd>
					<dt><var>$args</var></dt>
					<dd><code>array</code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="insert" id="_insert">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_insert">#</a>
		<code><a href="source-dibi.php.html#493" title="Go to source code">insert</a>( <span>string <var>$table</var></span>, <span>array <var>$args</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>table</dd>
					<dt><var>$args</var></dt>
					<dd><code>array</code></dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="delete" id="_delete">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiFluent.html">DibiFluent</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_delete">#</a>
		<code><a href="source-dibi.php.html#505" title="Go to source code">delete</a>( <span>string <var>$table</var></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			


				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$table</var></dt>
					<dd><code>string</code><br>table</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiFluent.html">DibiFluent</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="datetime" id="_datetime">

		<td class="attributes"><code>
			 public static
			<code><a href="DibiDateTime.html">DibiDateTime</a></code>
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_datetime">#</a>
		<code><a href="source-dibi.php.html#520" title="Go to source code">datetime</a>( <span> <var>$time</var> = <span class="php-keyword1">NULL</span></span> )</code>

		<div class="description short">
			
		</div>

		<div class="description detailed hidden">
			



				<h4>Returns</h4>
				<div class="list">
					<code><code><a href="DibiDateTime.html">DibiDateTime</a></code></code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="getSubstitutes" id="_getSubstitutes">

		<td class="attributes"><code>
			 public static
			DibiHashMap
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_getSubstitutes">#</a>
		<code><a href="source-dibi.php.html#546" title="Go to source code">getSubstitutes</a>( )</code>

		<div class="description short">
			
<p>Returns substitution hashmap - Monostate for
DibiConnection::getSubstitutes().</p>

		</div>

		<div class="description detailed hidden">
			
<p>Returns substitution hashmap - Monostate for
DibiConnection::getSubstitutes().</p>




				<h4>Returns</h4>
				<div class="list">
					<code>DibiHashMap</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	<tr data-order="dump" id="_dump">

		<td class="attributes"><code>
			 public static
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_dump">#</a>
		<code><a href="source-dibi.php.html#595" title="Go to source code">dump</a>( <span>string|<code><a href="DibiResult.html">DibiResult</a></code> <var>$sql</var> = <span class="php-keyword1">NULL</span></span>, <span>boolean <var>$return</var> = <span class="php-keyword1">FALSE</span></span> )</code>

		<div class="description short">
			
<p>Prints out a syntax highlighted version of the SQL command or DibiResult.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Prints out a syntax highlighted version of the SQL command or DibiResult.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$sql</var></dt>
					<dd><code>string|<code><a href="DibiResult.html">DibiResult</a></code></code></dd>
					<dt><var>$return</var></dt>
					<dd><code>boolean</code><br>return output instead of printing it?</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>



		</div>
		</div></td>
	</tr>
	</table>




	<table class="summary" id="constants">
	<caption>Constants summary</caption>
	<tr data-order="TEXT" id="TEXT">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#60" title="Go to source code"><b>TEXT</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'s'</span></code></td>
		<td class="description"><div>
			<a href="#TEXT" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="BINARY" id="BINARY">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#61" title="Go to source code"><b>BINARY</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'bin'</span></code></td>
		<td class="description"><div>
			<a href="#BINARY" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="BOOL" id="BOOL">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#62" title="Go to source code"><b>BOOL</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'b'</span></code></td>
		<td class="description"><div>
			<a href="#BOOL" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="INTEGER" id="INTEGER">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#63" title="Go to source code"><b>INTEGER</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'i'</span></code></td>
		<td class="description"><div>
			<a href="#INTEGER" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="FLOAT" id="FLOAT">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#64" title="Go to source code"><b>FLOAT</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'f'</span></code></td>
		<td class="description"><div>
			<a href="#FLOAT" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="DATE" id="DATE">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#65" title="Go to source code"><b>DATE</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'d'</span></code></td>
		<td class="description"><div>
			<a href="#DATE" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="DATETIME" id="DATETIME">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#66" title="Go to source code"><b>DATETIME</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'t'</span></code></td>
		<td class="description"><div>
			<a href="#DATETIME" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="TIME" id="TIME">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#67" title="Go to source code"><b>TIME</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'t'</span></code></td>
		<td class="description"><div>
			<a href="#TIME" class="anchor">#</a>

			<div class="description short">
				
<p>column type</p>

			</div>

			<div class="description detailed hidden">
				
<p>column type</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="IDENTIFIER" id="IDENTIFIER">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#70" title="Go to source code"><b>IDENTIFIER</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'n'</span></code></td>
		<td class="description"><div>
			<a href="#IDENTIFIER" class="anchor">#</a>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				

			</div>
		</div></td>
	</tr>
	<tr data-order="VERSION" id="VERSION">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#82" title="Go to source code"><b>VERSION</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'2.0.2'</span></code></td>
		<td class="description"><div>
			<a href="#VERSION" class="anchor">#</a>

			<div class="description short">
				
<p>version</p>

			</div>

			<div class="description detailed hidden">
				
<p>version</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="REVISION" id="REVISION">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#83" title="Go to source code"><b>REVISION</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'2dc3074 released on 2012-12-04'</span></code></td>
		<td class="description"><div>
			<a href="#REVISION" class="anchor">#</a>

			<div class="description short">
				
<p>version</p>

			</div>

			<div class="description detailed hidden">
				
<p>version</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="ASC" id="ASC">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#86" title="Go to source code"><b>ASC</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'ASC'</span></code></td>
		<td class="description"><div>
			<a href="#ASC" class="anchor">#</a>

			<div class="description short">
				
<p>sorting order</p>

			</div>

			<div class="description detailed hidden">
				
<p>sorting order</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="DESC" id="DESC">

		<td class="attributes"><code>
			string
		</code></td>
		<td class="name"><code>
				<a href="source-dibi.php.html#87" title="Go to source code"><b>DESC</b></a>
		</code></td>
		<td class="value"><code><span class="php-quote">'DESC'</span></code></td>
		<td class="description"><div>
			<a href="#DESC" class="anchor">#</a>

			<div class="description short">
				
<p>sorting order</p>

			</div>

			<div class="description detailed hidden">
				
<p>sorting order</p>


			</div>
		</div></td>
	</tr>
	</table>



	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="sql" id="$sql">

		<td class="attributes"><code>
			public static
			string
		</code></td>

		<td class="name">
				<a href="source-dibi.php.html#99" title="Go to source code"><var>$sql</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$sql" class="anchor">#</a>

			<div class="description short">
				
<p>Last SQL command @see dibi::query()</p>

			</div>

			<div class="description detailed hidden">
				
<p>Last SQL command @see dibi::query()</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="elapsedTime" id="$elapsedTime">

		<td class="attributes"><code>
			public static
			integer
		</code></td>

		<td class="name">
				<a href="source-dibi.php.html#102" title="Go to source code"><var>$elapsedTime</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$elapsedTime" class="anchor">#</a>

			<div class="description short">
				
<p>Elapsed time for last query</p>

			</div>

			<div class="description detailed hidden">
				
<p>Elapsed time for last query</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="totalTime" id="$totalTime">

		<td class="attributes"><code>
			public static
			integer
		</code></td>

		<td class="name">
				<a href="source-dibi.php.html#105" title="Go to source code"><var>$totalTime</var></a>
		</td>
		<td class="value"><code></code></td>
		<td class="description"><div>
			<a href="#$totalTime" class="anchor">#</a>

			<div class="description short">
				
<p>Elapsed time for all queries</p>

			</div>

			<div class="description detailed hidden">
				
<p>Elapsed time for all queries</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="numOfQueries" id="$numOfQueries">

		<td class="attributes"><code>
			public static
			integer
		</code></td>

		<td class="name">
				<a href="source-dibi.php.html#108" title="Go to source code"><var>$numOfQueries</var></a>
		</td>
		<td class="value"><code><span class="php-num">0</span></code></td>
		<td class="description"><div>
			<a href="#$numOfQueries" class="anchor">#</a>

			<div class="description short">
				
<p>Number or queries</p>

			</div>

			<div class="description detailed hidden">
				
<p>Number or queries</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="defaultDriver" id="$defaultDriver">

		<td class="attributes"><code>
			public static
			string
		</code></td>

		<td class="name">
				<a href="source-dibi.php.html#111" title="Go to source code"><var>$defaultDriver</var></a>
		</td>
		<td class="value"><code><span class="php-quote">'mysql'</span></code></td>
		<td class="description"><div>
			<a href="#$defaultDriver" class="anchor">#</a>

			<div class="description short">
				
<p>Default dibi driver</p>

			</div>

			<div class="description detailed hidden">
				
<p>Default dibi driver</p>


			</div>
		</div></td>
	</tr>
	</table>



</div>

	<div id="footer">
		Dibi 2.0.2 API documentation API documentation generated by <a href="http://apigen.org">ApiGen 2.6.1</a>
	</div>
</div>
</div>
</body>
</html>
